<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wechatapplet_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wechatapplet_id" data-rule="required" data-source="wechatapplet/index" class="form-control" name="row[wechatapplet_id]" type="text" value="{$row.wechatapplet_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Typedata')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="typedataList" item="vo"}
            <label for="row[typedata]-{$key}"><input id="row[typedata]-{$key}" name="row[typedata]" type="radio" value="{$key}" {in name="key" value="$row.typedata"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Token')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-token" data-rule="required" class="form-control" name="row[token]" type="text" value="{$row.token|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appid" data-rule="required" class="form-control" name="row[appid]" type="text" value="{$row.appid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appsecret')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appsecret" class="form-control" name="row[appsecret]" type="text" value="{$row.appsecret|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mp_appid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mp_appid" class="form-control" name="row[mp_appid]" type="text" value="{$row.mp_appid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mp_appsecret')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mp_appsecret" class="form-control" name="row[mp_appsecret]" type="text" value="{$row.mp_appsecret|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Aeskey')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-aeskey" class="form-control" name="row[aeskey]" type="text" value="{$row.aeskey|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mchid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mchid" class="form-control" name="row[mchid]" type="text" value="{$row.mchid|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mchkey')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mchkey" class="form-control" name="row[mchkey]" type="text" value="{$row.mchkey|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mch_api_cert')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mch_api_cert" class="form-control" name="row[mch_api_cert]" type="text" value="{$row.mch_api_cert|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mch_api_key')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mch_api_key" class="form-control" name="row[mch_api_key]" type="text" value="{$row.mch_api_key|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Notify_url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-notify_url" class="form-control" name="row[notify_url]" type="text" value="{$row.notify_url|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Principal')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-principal" class="form-control" name="row[principal]" type="text" value="{$row.principal|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Original')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-original" class="form-control" name="row[original]" type="text" value="{$row.original|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wechat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wechat" class="form-control" name="row[wechat]" type="text" value="{$row.wechat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Headface_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-headface_image" class="form-control" size="50" name="row[headface_image]" type="text" value="{$row.headface_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-headface_image" class="btn btn-danger faupload" data-input-id="c-headface_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-headface_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-headface_image" class="btn btn-primary fachoose" data-input-id="c-headface_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-headface_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-headface_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qrcode_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-qrcode_image" class="form-control" size="50" name="row[qrcode_image]" type="text" value="{$row.qrcode_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-qrcode_image" class="btn btn-danger faupload" data-input-id="c-qrcode_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-qrcode_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-qrcode_image" class="btn btn-primary fachoose" data-input-id="c-qrcode_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-qrcode_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-qrcode_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Signature')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-signature" class="form-control " rows="5" name="row[signature]" cols="50">{$row.signature|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-city" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.city|htmlentities}"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_type_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_type_info" data-rule="required" class="form-control" name="row[service_type_info]" type="text" value="{$row.service_type_info|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Verify_type_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-verify_type_info" data-rule="required" class="form-control" name="row[verify_type_info]" type="text" value="{$row.verify_type_info|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Business_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-business_info" class="form-control " rows="5" name="row[business_info]" cols="50">{$row.business_info|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authorizer_access_token')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authorizer_access_token" class="form-control" name="row[authorizer_access_token]" type="text" value="{$row.authorizer_access_token|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Access_token_overtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-access_token_overtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[access_token_overtime]" type="text" value="{:$row.access_token_overtime?datetime($row.access_token_overtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authorizer_refresh_token')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authorizer_refresh_token" class="form-control" name="row[authorizer_refresh_token]" type="text" value="{$row.authorizer_refresh_token|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Miniprograminfo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-miniprograminfo" class="form-control " rows="5" name="row[miniprograminfo]" cols="50">{$row.miniprograminfo|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Func_info')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-func_info" class="form-control " rows="5" name="row[func_info]" cols="50">{$row.func_info|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ticket')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ticket" class="form-control" name="row[ticket]" type="text" value="{$row.ticket|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ticket_overtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ticket_overtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[ticket_overtime]" type="text" value="{:$row.ticket_overtime?datetime($row.ticket_overtime):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
